/*
 * @Description: 
 */
import LayoutBack from '@/layout/back/index.vue'
import type { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/one',
    component: LayoutBack,
    redirect: '/one/one',
    meta: { title: '本地模块一', hidden: false, icon: 'setting' },
    children: [
      {
        path: 'one',
        component: () => import('@/views/one/one.vue'),
        meta: { title: '页面一', hidden: false, icon: 'setting' }
      },
      {
        path: 'two',
        component: () => import('@/views/one/two.vue'),
        meta: { title: '页面二', hidden: false, icon: 'setting' }
      },
    ]
  },
  {
    path: '/two',
    component: LayoutBack,
    redirect: '/two/one',
    meta: { title: '本地模块二', hidden: false, icon: 'setting' },
    children: [
      {
        path: 'one',
        component: () => import('@/views/two/one.vue'),
        meta: { title: '页面一', hidden: false, icon: 'setting' }
      },
      {
        path: 'two',
        component: () => import('@/views/two/two.vue'),
        meta: { title: '页面二', hidden: false, icon: 'setting' }
      },
    ]
  },
]

export default routes